/* author : Maisa Nurul Agnia  */

package jtk.project4.fleet.field;

import jtk.project4.fleet.action.AddEditPartToPurchaseOrderAction;
import jtk.project4.fleet.action.AddEditPurchaseOrderAction;
import nl.coderight.jazz.action.Action;
import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.FormLayout.Align;
import nl.coderight.jazz.form.FormLayout.Resize;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.ComboField;
import nl.coderight.jazz.form.field.MemoField;
import nl.coderight.jazz.form.field.SpinnerField;
import nl.coderight.jazz.form.field.TextField;
import nl.coderight.jazz.form.field.button.PushButton;

public class AddEditDeleteField extends GroupControl{
	private PushButton tambahButton;
	private PushButton editButton;
	private Action addEditPartToPurchaseOrderAction;


	
	public AddEditDeleteField(String bindID){
		//	setTitle("header.AddEditPartToPO"); //disesuaikan dengan nama field
			setBindID(bindID);
			createAction();
			createFields();
			createLayout();
		}
	
		private void createAction(){
			addEditPartToPurchaseOrderAction = new AddEditPartToPurchaseOrderAction();
			
		}
		
		private void createFields()
		{
			tambahButton = new PushButton(addEditPartToPurchaseOrderAction);	
			editButton = new PushButton(addEditPartToPurchaseOrderAction);	
			
			
		}
		
		private void createLayout()
		{
			setLayout(new FormLayout())
			
			.addField(tambahButton)
			.addField(editButton)
			;
		}
}
